package game
import (
	"message"
	"message/netlib"
)

func init() {
	Register(message.MSG_GM_COMMAND, handleGMCommand)
}
func handleGMCommand(args []interface{}) {
	msg := netlib.Deserialize(args[0], message.DataString{}).(*message.DataString)
	user := GetUserByAgent(args[1])
	if user != nil {
		user.reqGMCommand(msg.GetParam())
	}
}